package demo;

public class TryFinally {
    public static void main(String[] args) {
        int i = y();
        System.out.println(i);
    }

    public static int y() {
        try {
            return 1;
        } catch (Exception e) {

        } finally {
            return 2;
        }
    }
}
